package ar.edu.itba.infovis.TPF.twitter;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown=true)
public class TwitterUser {

	private Integer favourites_count;
	private Integer followers_count;
	private Integer friends_count;
	private Long id; // Used for HashCode and equals
	private String lang;
	private String location;
	private String name;
	private String screen_name;
	private String time_zone;
	private String url;
	private Boolean verified;

	public Integer getFavourites_count() {
		return favourites_count;
	}
	public void setFavourites_count(Integer favourites_count) {
		this.favourites_count = favourites_count;
	}
	public Integer getFollowers_count() {
		return followers_count;
	}
	public void setFollowers_count(Integer followers_count) {
		this.followers_count = followers_count;
	}
	public Integer getFriends_count() {
		return friends_count;
	}
	public void setFriends_count(Integer friends_count) {
		this.friends_count = friends_count;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getLang() {
		return lang;
	}
	public void setLang(String lang) {
		this.lang = lang;
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getScreen_name() {
		return screen_name;
	}
	public void setScreen_name(String screen_name) {
		this.screen_name = screen_name;
	}
	public String getTime_zone() {
		return time_zone;
	}
	public void setTime_zone(String time_zone) {
		this.time_zone = time_zone;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public Boolean getVerified() {
		return verified;
	}
	public void setVerified(Boolean verified) {
		this.verified = verified;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TwitterUser other = (TwitterUser) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}

}
